/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testing;

import com.application.AutoIncrement;
import com.application.ReadWriteFile;
import java.util.Hashtable;
import java.util.concurrent.atomic.AtomicLong;
/**
 *
 * @author node1
 */
public class SimpleTest {

    public static void main(String[] args) {
        // TODO code application logic here
//        long result = ReadWriteFile.read("Status");
//        System.out.println(result);
//        result = ReadWriteFile.write("Status", 999999999);
//        result = ReadWriteFile.read("Status");
//        System.out.println(result);
        AutoIncrement auto = AutoIncrement.getInstance();
        auto.setAutoIncrement("User", 1);
        long value = auto.getAutoIncrement("User");
        System.out.println(value);
        AutoIncrement auto1 = AutoIncrement.getInstance();
        System.out.println(auto1.getAutoIncrement("User"));

    }
}
